//
//  CarSystemCell.m
//  AutoHome
//
//  Created by wqh on 15-5-13.
//  Copyright (c) 2015年 Wqh. All rights reserved.
//

#import "CarSystemCell.h"

@implementation CarSystemCell

- (void)awakeFromNib {
    // Initialization code
    self.countLabel.layer.masksToBounds = YES;
    self.countLabel.layer.cornerRadius = 10;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)showDataWithModel:(CarSystemModel *)model {
    [self.imgView sd_setImageWithURL:[NSURL URLWithString:model.img] placeholderImage:[UIImage imageNamed:@"default_80_60"]];
    self.nameLabel.text = model.name;
    self.levelLabel.text = model.level  ;
    self.priceLabel.text = model.price;
    self.countLabel.text = model.count.stringValue;
  
    
}

@end
